package com.csap.framework.oauth2.server.entity;
import com.csap.framework.annotation.apidoc.Description;
import com.csap.framework.oauth2.server.model.OtherOpenModel;
import com.csap.framework.oauth2.type.OtherOpenType;
import com.csap.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import lombok.Builder;
import java.io.Serializable;
import java.lang.Override;

import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.Data;
import lombok.AllArgsConstructor;
import com.csap.mybatisplus.annotation.TableId;
import lombok.NoArgsConstructor;
import com.csap.mybatisplus.extension.activerecord.Model;
import com.csap.mybatisplus.annotation.TableName;
/**
 * <p>
 * 其他第三方open信息
 * </p>
 *
 * @author yangchengfu
 * @dateTime 2021-08-09 14:41:33
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "other_open")
@Description(value = "其他第三方open信息实体类")
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OtherOpenEntity extends Model<OtherOpenEntity, OtherOpenModel> {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO, value = "id")
    private Long id;
    /**
     * 第三方openId
     */
    private String openId;
    /**
     * 用户Id
     */
    private String userId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 第三方类型
     */
    private OtherOpenType type;
     @Override
     protected Serializable pkVal(){
         return this.id;
      }

}
